/**
 * 
 */
package com.easidea.tim.dao.supply;

import java.util.List;

import org.hibernate.Criteria;
import org.springside.core.dao.extend.HibernateEntityExtendDao;

import com.easidea.tim.entity.supply.SupType;

/**
 * @author Harrison
 *
 */
public class SupTypeDao extends HibernateEntityExtendDao<SupType> {
	 @SuppressWarnings("unchecked")
	 public List<SupType> getAllSupplierType() {
		 Criteria ca = createUnDeletedCriteria();
			return ca.list();
	  }
		public SupType getSupTypeById(Long id) {
			SupType type = (SupType)getHibernateTemplate().get(SupType.class, id);
			return type;
		}
	 
}
